const { mock } = require('mockjs')
const { image } = require('mockjs/src/mock/random')

const mockImageList = mock(({
    'imgs|10-20': [{
      'id|+1': 1,
      'title': '@ctitle',
      'description': '@csentence',
      'size': function (){return `${mock({'width|200-300':250}).width}×${mock({'height|200-300':250}).height}`},
      'bgColor': '@color',
      'textColor': '@color',
      'content': '@word(2,5)',
      'img': function () {
        return image(this.size, this.bgColor, this.textColor, this.content)
      }
    }]
  }
))
module.exports = {
  mockImageList,
}
